<?php

namespace tmcore\services\addons;

/**
 * 插件服务基类
 */
class BaseService
{
    protected string $root_path;
    protected string $addon_path;
    protected string $sys_path;
    protected string $download_path;

    public function __construct()
    {
        // 系统根目录
        $this->root_path = app()->getRootPath();
        // 根目录
        $this->sys_path = dirname($this->root_path) . DIRECTORY_SEPARATOR;
        // 插件目录
        $this->addon_path = UtilService::getAddonsPath();
        // 下载目录
        $this->download_path = $this->root_path . 'data/addons' . DIRECTORY_SEPARATOR;
    }
}